import Home from '@/views/Home.vue'

const routes = [
  {
    path: '/theme-switch',
    name: 'ThemeSwitch',
    component: () => import('@/views/ThemeSwitch.vue')
  },
  {
    path: '/pdf',
    name: 'pdf',
    component: () => import('@/views/pdf/pdf.vue')
  },
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  // {
  //   path: '/layout',
  //   name: 'Layout',
  //   component: () => import('@/layout/index.vue?chunkName=layout')
  // },
  {
    path: '/about',
    name: 'About',
    component: () => import('@/views/About.vue')
  },
  {
    path: '/button',
    name: 'button',
    component: () => import('@/views/basic/button.vue')
  },
  {
    path: '/checkbox',
    name: 'checkbox',
    component: () => import('@/views/basic/checkbox.vue')
  },
  {
    path: '/textOverflow',
    name: 'textOverflow',
    component: () => import('@/views/textOver/index.vue')
  },
  {
    path: '/attr',
    name: 'attr',
    component: () => import('@/views/attr/index.vue')
  },
  {
    path: '/suspense',
    name: 'suspense',
    component: () => import('@/views/suspense.vue')
  },
  {
    path: '/deploy',
    name: 'deploy',
    component: () => import('@/views/deploy/index.vue')
  },
  {
    path: '/dialog',
    name: 'dialog',
    component: () => import('@/views/dialog/index.vue')
  },
  {
    path: '/loadingBtn',
    name: 'loadingBtn',
    component: () => import('@/views/loadingBtn/index.vue')
  },
  {
    path: '/firstLevel',
    name: 'firstLevel',
    component: () => import('@/views/FirstLevel.vue'),
  },
  {
    path: '/secondLevel',
    name: 'secondLevel',
    component: () => import('@/views/SecondLevel.vue'),
  },
  {
    path: '/sse',
    name: 'sse',
    component: () => import('@/views/sse.vue'),
  },
  {
    path: '/recorder',
    name: 'recorder',
    component: () => import('@/views/recorder/index.vue'),
  },
  {
    path: '/:pathMatch(.*)*/',
    component: () => import('@/views/Notfound.vue'),
    name: 'Notfound'
  },

]

export default routes
